import './index.scss'

import Bar from '@/components/Bar'
const Home = () => {

  return (
    <div>
      {/* 渲染Bar组件 */}
      <Bar
        title='读者年龄分布'
        xData={['16以下', '16-20', '20-30','30以上']}
        yData={[30, 100, 140,80]}
        style={{ width: '500px', height: '400px' }} />
      {/* <Bar
        title='用户平均在线时间'
        xData={['0-4', '4-8', '8-12','12-16','16-20','20-24']}
        yData={[0.3,0.5,0.15,0.2,0.15,0.1]}
        style={{ width: '300px', height: '200px' }} /> */}
    </div>
  )
}

export default Home